package com.luyuan.crm.question.service.impl;

import java.util.List;

import org.hibernate.criterion.Order;

import com.luyuan.crm.question.model.Question;
import com.luyuan.crm.question.service.QuestionService;
import com.ruijie.foundation.dao.support.HibernateEntityDao;
import com.ruijie.foundation.query.Page;
import com.ruijie.foundation.query.criteria.CriteriaQueryTemplate;
import com.ruijie.foundation.query.criteria.CriteriaTemplate;

@SuppressWarnings("unchecked")
public class QuestionServiceImpl extends HibernateEntityDao<Question> implements
		QuestionService {


	@Override
	public Page pagedQuery(CriteriaTemplate criteria, int pageNo, int pageSize,
			List<Order> orders) {
		CriteriaQueryTemplate cqt = new CriteriaQueryTemplate(getSessionFactory());
        return cqt.pagedQuery(criteria, pageNo, pageSize, orders);
	}

}
